﻿@using BestTrader.Cms.ViewModels
@{
    ViewData["Title"] = "入金记录";
    var AgentManagers = ViewData["AgentManagers"] as List<ItemsDetailModel>;
}
<blockquote class="layui-elem-quote quoteBox">
    <form class="layui-form">
        @Html.AntiForgeryToken()
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" class="layui-input searchVal" placeholder="请输入直客姓名或真实姓名" />
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" name="startdate" id="startdate" lay-verify="startdate" placeholder="开始时间" autocomplete="off" class="layui-input startdate" readonly>
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" name="enddate" id="enddate" lay-verify="enddate" placeholder="结束时间" autocomplete="off" class="layui-input enddate" readonly>
            </div>
        </div>
        <div class="layui-input-inline">
            <div class="layui-input-inline">
                <select name="searchState" class="searchState" lay-verify="required">
                    <option value="">订单状态</option>
                    <option value="1">已完成</option>
                    <option value="0">未完成</option>
                </select>
            </div>
        </div>
        <div class="layui-input-inline">
            <div class="layui-input-inline">
                <select name="searchManagerId" class="searchManagerId" lay-filter="searchManagerId" lay-verify="required">
                    <option value="">所有客户</option>
                    @foreach (var item in AgentManagers)
                    {
                        <option value="@item.ItemCode">@(item.ItemName)(@(item.ItemData))</option>
                    }
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <a class="layui-btn search_btn" data-type="reload">搜索</a>
        </div>
        @*<div class="layui-inline">
            <a class="layui-btn layui-btn-warm code_btn" style="display:none;">导出</a>
        </div>*@
    </form>
</blockquote>
<table id="managerList" lay-filter="managerList"></table>
<script type="text/html" id="managerListBar">
    @*{{#  if(d.State === 0){ }}
        <a class="layui-btn layui-btn-sm" lay-event="del">取消申请</a>
        {{#  }}}*@
</script>
@section Scripts{
    <script type="text/javascript" src="~/layui-v2.4.5/layui.js"></script>
    <script type="text/javascript" src="~/js/inoutcash/incoinRecordList.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}